import {FormSchema} from "@/components/Form";

export const columns = [
  {
    type: 'selection',
    key: 'selection'
  },
  {
    title: "ID",
    key: "id",
    width: 80
  },
  {
    title: '主播名称',
    key: 'anchorName',
  }, {
    title: '渠道ID',
    key: 'chanId',
  }, {
    title: '直播时间',
    key: 'liveTime',
  },
  {
    title: "广告成本",
    key: "adveristCost"
  },
  {
    title: "更新时间",
    key: "updateTime"
  },
  {
    title: "创建时间",
    key: "createTime"
  },
];
export const addCloumns: FormSchema[] = [
  {
    field: 'anchorName',
    component: 'NInput',
    label: '主播名称',
    componentProps: {
      placeholder: "主播名称"
    },
    rules: [{required: true, message: '请输入主播名称', trigger: ['blur']}],
  },
  {
    field: 'chanId',
    label: '渠道',
    rules: [{required: true, message: '请选择渠道', trigger: ['blur']}],
    slot: "chanSelect"
  },
  {
    field: 'adveristCost',
    label: '广告成本',
    component: "NInput",
    componentProps: {
      placeholder: "广告成本",
    },
    rules: [{required: true, message: '广告成本必填', trigger: ['blur']}],
  },
  {
    field: 'liveTime',
    label: '直播时间',
    component: "NDatePicker",
    slot: "makeDate"
  },
];

